package com.linksfield.topup.entity.interfaces.anoverview.admin.orderdata.yeardata.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 概览：管理员：按照年份，企业查询：
 * 1，当前选中的年份全年的订单总数，订单总额；
 * 2，当前选中的年份按月的订单总数，订单总额；
 * request：前端 RequestAdminYearOrder
 * response：后端 ResponseAdminYearOrder
 *
 * @author: lm
 * @date: 2020-04-15 10:33
 */
@Data
public class ResponseAdminYearOrder implements Serializable {

    private static final long serialVersionUID = -3320209365616231520L;
    @ApiModelProperty(value = "全年订单数", example = "", dataType = "String")
    private String yearOrderCount;

    @ApiModelProperty(value = "全年订单总额", example = "", dataType = "String")
    private String yearOrderMoney;

    //"dataByMonth":[{"date":"2020-01","orderMoney":"1344.41","orderCount":"59"},{"date":"2020-02","orderMoney":"1329.44","orderCount":"60"},{"date":"2020-03","orderMoney":"989.62","orderCount":"40"},{"date":"2020-04","orderMoney":"13.99","orderCount":"1"}]

    @ApiModelProperty(value = "将返回折线图上所需内容：date=月份；orderCount=订单总条数；orderMoney=订单总金额", example = "\"dataByMonth\":[{\"date\":\"2020-01\",\"orderMoney\":\"1344.41\",\"orderCount\":\"59\"},{\"date\":\"2020-02\",\"orderMoney\":\"1329.44\",\"orderCount\":\"60\"},{\"date\":\"2020-03\",\"orderMoney\":\"989.62\",\"orderCount\":\"40\"},{\"date\":\"2020-04\",\"orderMoney\":\"13.99\",\"orderCount\":\"1\"}]", dataType = "String")
    private List<Map<String, Object>> dataByMonth;

}
